package com.example.mybatis.dto;

import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class ValidList {
    @NotBlank(message = "name不可为空")
    private String name;

    @Valid
    @Size(min = 1,message = "部门信息必须大于1个")
    List<TestValid> validList;
}
